define({ "api": [
  {
    "type": "post",
    "url": "/secure/addRoom",
    "title": "添加房间",
    "name": "addRoom",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>添加房间</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "level",
            "description": "<p>级别</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>类型</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "price",
            "description": "<p>价格</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "status",
            "description": "<p>状态</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/add/AddRoomController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/deleteRoom",
    "title": "删除房间",
    "name": "deleteRoom",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>删除房间</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/delete/DeleteRoomController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/exitRoom",
    "title": "退房",
    "name": "exitRoom",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>退房</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/op/ExitRoomController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/getAllRoom",
    "title": "获取房间信息列表",
    "name": "getAllRoom",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>获取房间信息列表</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "status",
            "description": "<p>房间状态（选填）</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true,\n     \"list\":[\n            \t{\n              \t\"id\":201,\n              \t\"level\":\"豪华\",\n              \t\"type\":\"标间\",\n              \t\"price\":50,\n              \t\"status\":0\n              }\n            ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/get/GetAllRoomController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/getRoomDetail",
    "title": "获取房间详情",
    "name": "getRoomDetail",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>获取房间详情</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true,\n     \"detail\":{\n              \t\"id\":201,\n              \t\"level\":\"豪华\",\n              \t\"type\":\"标间\",\n              \t\"price\":50,\n              \t\"status\":0,\n              \t\"orders\":[\n              \t\t\t  \t\"id\":1,\n              \t\t\t\t\"roomid\":201,\n              \t\t\t\t\"name\":\"张三\",\n              \t\t\t\t\"idcard\":\"500212542112541\",\n              \t\t\t\t\"starttime\":\"2018-10-12 10:00:00\",\n              \t\t\t\t\"endtime\":\"2018-10-13 10:00:00\"\n              \t\t\t ]\n              }\n            \n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/get/GetRoomDetailController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/getRoomListOne",
    "title": "通过房间号获取一个房间的信息列表",
    "name": "getRoomListOne",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>通过房间号获取一个房间的信息列表</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true,\n     \"list\":[\n            \t{\n              \t\"id\":201,\n              \t\"level\":\"豪华\",\n              \t\"type\":\"标间\",\n              \t\"price\":50,\n              \t\"status\":0\n              }\n            ]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/get/GetRoomlistOneController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/openRoom",
    "title": "开房",
    "name": "openRoom",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>开房</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>姓名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "idcard",
            "description": "<p>身份证号码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/op/OpenRoomController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/updateRoom",
    "title": "更新房间",
    "name": "updateRoom",
    "group": "Room",
    "version": "1.0.0",
    "description": "<p>更新房间</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "id",
            "description": "<p>房间号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "level",
            "description": "<p>级别</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>类型</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "price",
            "description": "<p>价格</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "status",
            "description": "<p>状态</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/update/UpdateRoomController.java",
    "groupTitle": "Room"
  },
  {
    "type": "post",
    "url": "/secure/getusername",
    "title": "获取当前用户名",
    "name": "getusername",
    "group": "User",
    "version": "1.0.0",
    "description": "<p>获取当前用户名</p>",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true,\n     \"username\":\"yg0001\"\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/get/GetUserNameController.java",
    "groupTitle": "User"
  },
  {
    "type": "post",
    "url": "/login",
    "title": "登陆",
    "name": "login",
    "group": "User",
    "version": "1.0.0",
    "description": "<p>登陆</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "boolean",
            "optional": false,
            "field": "res",
            "description": "<p>是否成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/LoginController.java",
    "groupTitle": "User"
  },
  {
    "type": "post",
    "url": "/secure/logout",
    "title": "注销",
    "name": "logout",
    "group": "User",
    "version": "1.0.0",
    "description": "<p>注销</p>",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"res\":true\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "Error-Response: ",
          "content": "HTTP/1.1 200 OK\n{ \n\t\"res\":false\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/com/liyang/jdgl/controller/LogoutController.java",
    "groupTitle": "User"
  }
] });
